home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 51 / Amiga Format CD51 (2000-03-10)(Future Publishing)(GB)[!][issue 2000-04].iso / -in_the_mag- / freedos / freedos_docs / mini / kernel-compile.txt < prev    next >
Text File  |  2000-02-08  |  3KB  |  79 lines

  1. ----------------------------------------------------------------------
  2.               KERNEL COMPILE MINI-HOWTO
  3.  
  4.                Brian Reifsnyder
  5.               reifsnyderb@mindspring.com
  6.  
  7.                  Jan 22 2000
  8. ----------------------------------------------------------------------
  9.  
  10. As requested, here is how I compiled the kernel:
  11.  
  12. 1.  First, I copied the kernel source zip file into a subdirectory
  13.   called "kernel" on my DOS box so that it would not unzip in the root
  14.   directory.
  15.  
  16. 2.  Unzip the source code.  Don't forget to make sure that the
  17.   directory structure will be unzipped as well.  I used PKUNZIP and
  18.   the command is: PKUNZIP -d KER2017F.ZIP
  19.  
  20. 3.  Make sure you have either Borland TC 2.01 or Borland TC++ 3.0
  21.   installed on your computer.  If you don't, you can go out to
  22.   Borland's web site and download TC 2.01 for free.  Borland's web
  23.   site is at: http://community.borland.com/museum (Unfortunately, they
  24.   now make you give them all your personal information in order to
  25.   login and download the free software.)  :-(
  26.  
  27. Note: If you have Borland TC++ 3.0 the instructions are the same but
  28.   the pathing and which statements get unREM'd out will be
  29.   different in the instructions below.  (I haven't tried compiling the
  30.   kernel with TC++ 3.0 yet.)
  31.  
  32. 4.  Make sure that you have NASM installed on your computer.  The
  33.   latest version is 0.98 and the web site is:
  34.   http://www.web-sites.co.uk/nasm
  35.  
  36. 5.  On my computer TC 2.01 is installed in the subdirectory C:\TC201
  37.  and NASM is installed in the subdirectory C:\NASM.
  38.  
  39. 6.  Make sure that the PATH=statement in the AUTOEXEC.BAT file has
  40.   pathing for both TC201 and NASM.  The path command for my computer
  41.   is:
  42. PATH=C:\DOS;C:\;C:\PKWARE;C:\TC201;C:\TC201\INCLUDE;C:\TC201\LIB;C:\NASM
  43.   (I added the \INCLUDE and \LIB directories as an overkill, just in case.)
  44.  
  45. 7.  Make sure that the set MAKE= statement in the CONFIG.B file is set
  46.   appropriately for your system.  If you have TC 3.0, it will need
  47.   changed.
  48.  
  49. 8.  Copy the CONFIG.B file to CONFIG.BAT
  50.  
  51. 9.  Edit the CONFIG.M file appropriately for your system.  Almost
  52.   everything it REM'd out and you will have to delete the "#'s" in
  53.   the statements appropriate to the C compiler you have installed.
  54.  
  55. 10.  Copy the CONFIG.M file to CONFIG.MAK
  56.  
  57. 11.  Go down one subdirectory to the \LIB subdirectory and edit the
  58.   LIBM.MAK file similar to the way you edited the CONFIG.M file in
  59.   item 9 above and return to the previous subdirectory level.
  60.  
  61. 12.  Type "BUILD" and the kernel should be created in the \BIN
  62.   subdirectory.
  63.  
  64. 13.  To create a boot disk go to the \BIN subdirectory, place a blank
  65.   formatted floppy disk (1.44MB 3.5") in drive A: and type INSTALL A:
  66.   After the batch file finishes you should have a FreeDOS boot disk
  67.   with the compiled kernel.
  68.  
  69. Note: If for some reason the build fails, and the kernel is not
  70.   created, do the following:
  71.  
  72.          1.  Try running the clean batch file and then running BUILD.
  73.  
  74.          2.  Try running the clean batch file, the clobber batch file,
  75.                then running BUILD.
  76.  
  77.          3.  If that doesn't work, post a question to the list because
  78.                I don't know what happened.
  79.